<template>
     <div class="mine">
         <!-- 二级我的 -->
         <div class="chihuo">
             <div class="chi">
                <h3>吃货卡</h3> 
                <span>吃货豆 1423</span>
                <p>你不吃我吃，我不吃他吃,全部都爱吃火锅</p>
                </div>
         </div>
         
         <div class="hong">
             <div>
                 <h4>红包</h4> 
                <span>七张今日到期</span>
                </div>
             <div>
                <h4>余额</h4> 
                <span>0元</span>
                </div>
         </div>

         <!-- <div class="hong xia"> -->
             <!-- <div>我的地址</div>
             <div>我的客服</div>
             <div>店铺关注</div>
             <div>评价有礼</div> -->

             <van-tabbar v-model="active" class="zhong">
  <van-tabbar-item icon="home-o">我的电脑</van-tabbar-item>
  <van-tabbar-item icon="search">我的客服</van-tabbar-item>
  <van-tabbar-item icon="friends-o" @click="toCollect">店铺关注</van-tabbar-item>
  <van-tabbar-item icon="setting-o">评价有礼</van-tabbar-item>
</van-tabbar>
         <!-- </div> -->

         <div class="hong zui">
             <div>邀好友赚钱</div>
             <div>饿了吗服务号</div>
         </div>
     </div>
</template>

<script>
export default {
     data(){
         return{
            active: 0,
         }
     },
     methods:{
        toCollect(){
            this.$router.push('/collect')
        }
     }
}
</script>

<style lang="scss" scoped>
       *{
    margin: 0;
    padding: 0;
}
      .chihuo{
          display: flex;
          justify-content: center;
          margin-top: 40px;
      }
     .mine .chi{
        //  text-align: center;
         padding-left: 20px;
         box-sizing: border-box;
         width: 95%;
         height: 80px;
         border-radius: 10px;
         background-color: rgb(103, 142, 241);
         margin-top: 20px;
         color: #f5f5f5;
         h3{
             font-weight: 400;
             display: inline-block;
             padding-right: 20px;

         }
         p{
             font-size: 13px;
         }
         
     }
     .hong{
         display: flex;
         justify-content: center;

         span{
             color: black;
             font-size: 13px;
         }
     }
     .hong>div{
         color: red;
         text-align: center;
        //  font-size: 20px;
         width: 40%;
         height: 80px;
        background-color: #f5f5f5;
        margin: 10px;
        border-radius: 10px;
     }
     .xia>div{

         height: 50px;
         color: black;
         font-size: 16px;
     }
     .zui>div{
width: 45%;
height: 200px;
color: black;
font-size: 16px;
}
.zhong{
    position: static;
}
</style>